package com.synjones.pay.model.common;

/**
 * response data storage after pay
 *
 * @author zhzy
 */
public class ResponseBean {

    private final String orderNo;

    private final String amount;

    private final String statusCode;

    private final String bankCode;

    private final String serialNo;

    public String getSerialNo() {
        return serialNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public String getAmount() {
        return amount;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public String getBankCode() {
        return bankCode;
    }

    public static class Builder {

        private String orderNo;
        private String amount;
        private String statusCode;
        private String bankCode;
        private String serialNo;

        public Builder amount(String amount) {
            this.amount = amount;
            return this;
        }

        public Builder orderNo(String orderNo) {
            this.orderNo = orderNo;
            return this;
        }

        public Builder statusCode(String statusCode) {
            this.statusCode = statusCode;
            return this;
        }

        public Builder bankCode(String bankCode) {
            this.bankCode = bankCode;
            return this;
        }

        public Builder serialNo(String serialNo) {
            this.serialNo = serialNo;
            return this;
        }

        public ResponseBean builder() {
            return new ResponseBean(this);
        }

    }

    private ResponseBean(Builder builder) {
        this.amount = builder.amount;
        this.orderNo = builder.orderNo;
        this.bankCode = builder.bankCode;
        this.statusCode = builder.statusCode;
        this.serialNo = builder.serialNo;
    }

}
